import request from '@/utils/request'

// 查询委托书列表
export function listLoa(query) {
  return request({
    url: '/weixin/loa/list',
    method: 'get',
    params: query
  })
}

// 查询委托书列表
export function listLoaAuth(query) {
  return request({
    url: '/weixin/loa/listAuth',
    method: 'get',
    params: query
  })
}

// 查询委托书详细
export function getLoa(loaId) {
  return request({
    url: '/weixin/loa/' + loaId,
    method: 'get'
  })
}

// 新增委托书
export function addLoa(data) {
  return request({
    url: '/weixin/loa',
    method: 'post',
    data: data
  })
}

// 修改委托书
export function updateLoa(data) {
  return request({
    url: '/weixin/loa/put',
    method: 'post',
    data: data
  })
}

// 删除委托书
export function delLoa(loaId) {
  return request({
    url: '/weixin/loa/del/' + loaId,
    method: 'post'
  })
}
